package com.lzc.tlmall.tlmallauthservice.feign;

import com.lzc.common.utils.R;
import com.lzc.common.vo.OauthUser;
import com.lzc.tlmall.tlmallauthservice.vo.LoginVo;
import com.lzc.tlmall.tlmallauthservice.vo.RegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lzc
 * @create 2020-10-11 20:47
 */
@FeignClient("tlmail-menber")
public interface UserFeignService {


    /**
     * 调用远程会员服务注册
     * @param registVo
     * @return
     */
    @RequestMapping("/member/member/regist")
     R regist(@RequestBody RegistVo registVo);

    /**
     * 登录
     * @param loginVo
     * @return
     */
    @RequestMapping("/member/member/login")
     R login(@RequestBody LoginVo loginVo);

    /**
     * 登录
     * @param oauthUser
     * @return
     */
    @RequestMapping("/member/member/oauthLogin")
     R oauthLogin(@RequestBody OauthUser oauthUser) throws Exception ;
}
